//
//  WBMTRightList.m
//  WBMTwaimai
//
//  Created by WangBiao on 16/9/21.
//  Copyright © 2016年 lsrain. All rights reserved.
//

#import "WBMTRightList.h"

@implementation WBMTRightList

- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    
    if ([key isEqualToString:@"description"]) {
        [super setValue:value forKey:@"desc"];
    }
}

///重写打印方法
- (NSString *)description{
    return [NSString stringWithFormat:@"name: %@, description: %@, 月售: %@, 点赞： %@", self.name, self.desc, self.month_saled, self.praise_num];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{}
@end
